/***************************************************************
 * Name:      CamMain.h
 * Purpose:   Defines Application Frame
 * Author:    Riku Maikola (rpm@ac-mapa.org)
 * Created:   2011-02-17
 * Copyright: Riku Maikola (rpm.ac-mapa.org)
 * License:
 **************************************************************/

#ifndef CAMMAIN_H
#define CAMMAIN_H

#include <wx/panel.h>
#include <wx/string.h>
#include <wx/textctrl.h>

#include <wx/statusbr.h>
#include <wx/frame.h>

#include "sys/time.h"
#include "TerminalApp.h"
//#include <wx/filedlg.h>
#include <sys/shm.h>
#include "wx/timer.h"
//#include <wx/tokenzr.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <sstream>

enum
{
    menuLoad,
    menuSave,
    menuSaveAs,

    menuEditCode,
    menuEditWorkDir,

    menuBuild,
    menuBuildRun,
    menuRun
};



class CamMain: public wxFrame
{
protected:
    wxMenuBar* MenuBar;
    wxMenu* ProjectMenu;
    wxMenu* EditorMenu;
    wxMenu* BuildMenu;

    wxTextCtrl* iPAST;
    wxTextCtrl* iCLI;

    wxStatusBar* statusBar;

    virtual void OnClose( wxCloseEvent& event )
    {
        event.Skip();
    }

private:
    virtual void OnMenu( wxCommandEvent& event );
    virtual void OnMenuEdit( wxCommandEvent& event );
    virtual void OnMenuBuild( wxCommandEvent& event );

    //virtual void iOnSize( wxSizeEvent& event );
    virtual void iEXE( wxCommandEvent& event );

public:
    wxString PATH,WORKDIR;

    CamMain( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Gpath"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 400,200 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
    ~CamMain();

};
#endif // CHAMFERMAIN_H
